Descriptor Size
Protobuf enum DescriptorSize
Entries
Properties
Link copied to clipboard
1 word; up to 15 byte fields, no arrays
Content copied to clipboard
DS_1 = 1;
Link copied to clipboard
2 words; up to 4095 byte fields, 4095 entry arrays
Content copied to clipboard
DS_2 = 2;
Link copied to clipboard
4 words; up to 2^32-1 byte fields, 2^16-1 entry arrays
Content copied to clipboard
DS_4 = 4;
Link copied to clipboard
8 words; up to 2^32-1 entry arrays
Content copied to clipboard
DS_8 = 8;
Link copied to clipboard
Select minimal size based on field type
Content copied to clipboard
DS_AUTO = 0;
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Link copied to clipboard
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.